package com.nanyang.tms.dao.company;

import com.nanyang.tms.domain.company.CompanyDeclareDO;
import com.nanyang.tms.domain.company.CompanyDeclareQuery;
import com.nanyang.tms.domain.company.CompanyDeclareVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>Description:(企业常用报关信息)</p>
 *
 * @author lv
 * @date 2022年11月12日 下午10:46:16
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface CompanyDeclareDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(CompanyDeclareDO record);

    /**
     * <p>selectByPrimaryKey</p>
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return CompanyDeclareDO
     */
    CompanyDeclareDO selectByPrimaryKey(Long id);

    /**
     * <p>updateByPrimaryKeySelective</p>
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(CompanyDeclareDO record);

    /**
     * 总数
     * @param query
     * @return
     */
    int countDeclare(CompanyDeclareQuery query);

    /**
     * 列表
     * @param query
     * @return
     */
    List<CompanyDeclareVO> listDeclare(CompanyDeclareQuery query);

    /**
     * 根据编码查询
     * @param query
     * @return
     */
    CompanyDeclareVO selectByCode(CompanyDeclareQuery query);

    /**
     * 删除
     * @param companyDeclareDO
     * @return
     */
    int delDeclare(CompanyDeclareDO companyDeclareDO);
}